<template>
    <div>
        <button @click="setValue">父子组件的数据双向绑定</button>
    </div>
</template>

<script lang='ts'>
import {defineComponent, ref, reactive, toRefs, computed} from 'vue'
export default defineComponent({
  setup(props,context){
      let setValue= (e : any) => {
          context.emit("update:modelValue","123")
      }
    
    return{
        setValue,
    
    }
  },
});
</script>

<style scoped >

</style>
